<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="../org/angular.min.js"></script>
</head>
<body>
    <div ng-app="vm" ng-controller="ctrl">
      <div hdcms></div>
      <br/>
      <hdcms></hdcms>
    </div>
    <script>
        
          var vm = angular.module('vm',[])
          vm.directive('hdcms',[function(){
              return {
                  restrict: "AEC",
                  template: '自定义组件'
              }
          }])
    </script>
</body>
</html>